import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router'
import Pagination from '@/components/Pagination'
import Rtable from '@/components/Rtable'
import Rdialog from '@/components/Rdialog'
import Http from '@/request'
import Store from '@/store'
import Modal from '@/utils/modal'


Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.prototype.$http = Http
Vue.prototype.$store = Store
Vue.prototype.$modal = Modal

Vue.component('pagination', Pagination)
Vue.component('r-table', Rtable)
Vue.component('r-dialog', Rdialog)

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
